<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用jq解析json数据</title>
    <script src="./js/jquery-3.3.1.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#actionBtn").click(function(){
                var msg = $("#content").val();
                alert(msg);
                console.log(msg);
            });
        });
    </script>
</head>

<button>
<input type="text" id="content" />
<button id="actionBtn">发起异步请求</button>
</body>
</html>

